<?php
// Connection's Parameters
$db_host="localhost";
$db_name="wepopkl";
$username="root";
$password="";
// Connection
$con = mysql_connect($db_host,$username,$password);
if (!$con) 
	{echo "tidak berhasil konek";
}
$con_db = mysql_select_db($db_name) ;
if (!$con_db)
	{echo "tidak bisa milih db";
}
	
		
	$sql="INSERT INTO testimoni (id_testimoni, nama, email, comment, level)
VALUES
('$_POST[id_testimoni]','$_POST[nama]','$_POST[email]','$_POST[comment]', 0)";
	$id_testimoni=mysql_insert_id($con);

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
else header("Location: ../views/halamandashboard.php");

mysql_close($con);	
?>
